//函数的功能是获取内容列表
export const getPosts = () => {
  //假设的数据库数据
  const data = [{
    "p_name": "妙蛙种子",
    "p_id": "001",
    "p_url": "poke/001.png",
    "p_attr1": 12,
    "p_attr2": 4,
    "p_capture": 5.9
  },
  {
    "p_name": "妙蛙草",
    "p_id": "002",
    "p_url": "poke/002.png",
    "p_attr1": 12,
    "p_attr2": 4,
    "p_capture": 5.9
  },
  {
    "p_name": "妙蛙花",
    "p_id": "003",
    "p_url": "poke/003.png",
    "p_attr1": 12,
    "p_attr2": 4,
    "p_capture": 5.9
  }]
  return data;
}
//在控制器中导入